package com.xgzit.xgzmall.product.dao;

import com.xgzit.xgzmall.product.entity.SpuInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * spu信息
 *
 * @author xgz
 * @email 923904706@qq.com
 * @date 2021-03-20 14:49:08
 */
@Mapper
public interface SpuInfoDao extends BaseMapper<SpuInfoEntity> {

    /**
    * 修改上架成功的商品状态
    * @param spuId:
    * @param code:
    * @return void
    */
    void updateSpuStatus(@Param("spuId") Long spuId, @Param("code") int code);
}
